package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the SMPREGAD database table.
 * 
 */
@Entity
@Table(name="SMPREGAD")
public class Smpregad implements Serializable {
	private static final long serialVersionUID = 1L;
	private SmpregadPK id;
	private Date addedon;
	private String city;
	private String country;
	private String state;
	private String street1;
	private String street2;
	private Date updatedon;
	private String zip;

    public Smpregad() {
    }


	@EmbeddedId
	public SmpregadPK getId() {
		return this.id;
	}

	public void setId(SmpregadPK id) {
		this.id = id;
	}
	

    @Temporal( TemporalType.DATE)
	public Date getAddedon() {
		return this.addedon;
	}

	public void setAddedon(Date addedon) {
		this.addedon = addedon;
	}


	@Column(nullable=false, length=40)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}


	@Column(nullable=false, length=40)
	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}


	@Column(nullable=false, length=40)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}


	@Column(nullable=false, length=100)
	public String getStreet1() {
		return this.street1;
	}

	public void setStreet1(String street1) {
		this.street1 = street1;
	}


	@Column(length=100)
	public String getStreet2() {
		return this.street2;
	}

	public void setStreet2(String street2) {
		this.street2 = street2;
	}


    @Temporal( TemporalType.DATE)
	public Date getUpdatedon() {
		return this.updatedon;
	}

	public void setUpdatedon(Date updatedon) {
		this.updatedon = updatedon;
	}


	@Column(nullable=false, length=40)
	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

}